<?php
namespace app\gym\controller;
use app\common\controller\BaseApi;

/*定时器*/
class Timer extends  BaseApi
{
	function _initialize() {
    }
	/*
	 * 激活
	 * http://smartgym.com/gym/Timer/activation
	 * */
	function activation(){
		$result=db("GymOrder")->where("order_status in(3,4) and start_date=DATE_FORMAT(now(),'%Y-%m-%d') and is_delete=0")->setField(array("order_status"=>1));
		var_dump($result);die;
	}
}
